package cn.zqh.brand.client;


import cn.zqh.bean.bo.Store;
import cn.zqh.brand.config.DefaultFeignConfiguration;
import cn.zqh.brand.interceptor.FeignInterceptor;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "bs-store",configuration = { DefaultFeignConfiguration.class, FeignInterceptor.class})
public interface StoreClient {

    /**
     * @Author: zqh
     * @Date:
     * @Description: 通过用户主键查询旗下的店铺
     */
    @ApiOperation(value = "通过用户id获取店铺")
    @GetMapping(value = "/store/getStoreByUserId")
    public Store QueryTheStoresUnderTheCompanyThroughTheUserPrimaryKey(@RequestParam String uid);

    /**
     * @Author: zqh
     * @Date:
     * @Description: 通过店铺id获取店铺信息
     */
    @ApiOperation(value = "通过店铺id获取店铺信息")
    @GetMapping(value = "/store/getStoreInformationByStoreId")
    public Store getStoreInformationByStoreId(@RequestParam String storeId);
}
